package com.zhibang.sinocare.dict.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zhibang.sinocare.common.domian.MedicalReport;
import com.zhibang.sinocare.common.domian.vo.MedicalReportVo;
import com.zhibang.sinocare.common.result.Result;
import com.zhibang.sinocare.common.result.ResultCode;
import com.zhibang.sinocare.dict.dao.MedicalReportMapper;
import com.zhibang.sinocare.dict.service.MedicalReportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MedicalReportServiceImpl extends ServiceImpl<MedicalReportMapper, MedicalReport> implements MedicalReportService{

    @Resource
    private MedicalReportMapper medicalReportMapper;


    @Override
    public List<MedicalReport> queryBy(MedicalReport medicalReport) {
        return medicalReportMapper.queryBy(medicalReport);
    }

    @Override
    public int addOnUpdate(MedicalReportVo medicalReportVo) {
        return medicalReportMapper.addOnUpdate(medicalReportVo);
    }


}
